/**
 * 报备系统管理后台
 */
export default [
  {
    name: 'admin',
    path: '/admin',
    redirect: '/admin/index',
    component: () =>
      import(/* webpackChunkName:"OSS" */ '@/pages/admin/OSS.vue'),
    children: [
      {
        name: 'OSSIndex',
        path: 'index',
        component: () =>
          import(
            /* webpackChunkName:"OSSIndex" */ '@/pages/admin/OSSIndex.vue'
          ),
      },
      {
        name: 'OSSFilings',
        path: 'OSSFilings',
        component: () =>
          import(
            /* webpackChunkName:"OSSFilings" */ '@/pages/admin/OSSFilings.vue'
          ),
      },
      {
        name: 'UserManagement',
        path: 'UserManagement',
        component: () =>
          import(
            /* webpackChunkName:"UserManagement" */ '@/pages/admin/UserManagement.vue'
          ),
      },
      {
        name: 'Announcements',
        path: 'Announcements',
        component: () =>
          import(
            /* webpackChunkName:"Announcements" */ '@/pages/admin/Announcements.vue'
          ),
      },
      {
        name: 'OSSFunction',
        path: 'Function',
        component: () =>
          import(
            /* webpackChunkName:"OSSFunction" */ '@/pages/admin/OSSFunction.vue'
          ),
      },
      {
        name: 'Role',
        path: 'Role',
        component: () =>
          import(
            /* webpackChunkName:"authority" */ '@/pages/admin/Setting/Role.vue'
          ),
      },
      {
        name: 'Power',
        path: 'Power',
        component: () =>
          import(
            /* webpackChunkName:"authority" */ '@/pages/admin/Setting/Power.vue'
          ),
      },
      {
        name: 'Projects',
        path: 'Projects',
        component: () =>
          import(
            /* webpackChunkName:"authority" */ '@/pages/admin/project/List.vue'
          ),
      },
      {
        name: 'Qualification',
        path: 'Qualification',
        redirect: 'Qualification_Verify_list',
        component: () =>
          import(
            /* webpackChunkName:"authority" */ '@/pages/admin/Qualification/home.vue'
          ),
        children: [
          {
            name: 'Verify',
            path: '/admin/Qualification_Verify_list',
            component: () =>
              import(
                /* webpackChunkName:"authority" */ '@/pages/admin/Qualification/Verify/List.vue'
              ),
          },
          {
            name: 'Category',
            path: '/admin/Qualification_Category_list',
            component: () =>
              import(
                /* webpackChunkName:"authority" */ '@/pages/admin/Qualification/Category/List.vue'
              ),
          },
          {
            name: 'Category',
            path: '/admin/Qualification_Category_second_list',
            component: () =>
              import(
                /* webpackChunkName:"authority" */ '@/pages/admin/Qualification/Category/SecondLevelList.vue'
              ),
          },
          {
            name: 'Category',
            path: '/admin/Qualification_Category_third_list',
            component: () =>
              import(
                /* webpackChunkName:"authority" */ '@/pages/admin/Qualification/Category/ThirdLevelList.vue'
              ),
          },
        ],
      },
      {
        name: 'FactoryDirectOrder',
        path: 'FactoryDirectOrder',
        component: () =>
          import(
            /* webpackChunkName:"FactoryDirectOrder" */ '@/pages/admin/FactoryDirectOrder.vue'
          ),
      },
      {
        name: 'RoleGroup',
        path: 'RoleGroup',
        component: () =>
          import(
            /* webpackChunkName:"FactoryDirectOrder" */ '@/pages/admin/roleGroup/list.vue'
          ),
      },

      /**
       * 竞价报备
       */
      {
        name: 'RoleGroup',
        path: 'RoleGroup',
        component: () =>
          import(
            /* webpackChunkName:"FactoryDirectOrder" */ '@/pages/admin/roleGroup/list.vue'
          ),
      },
      {
        name: 'BidFilings',
        path: '/admin/BidFilings',
        component: () =>
          import(
            /* webpackChunkName:"OSSFilings" */ '@/pages/admin/bidding/OSSFilings.vue'
          ),
      },

      // 商品上架
      {
        name: 'goods',
        path: '/admin/goods',
        component: () =>
          import(
            /* webpackChunkName:"OSSFilings" */ '@/pages/admin/goods/index.vue'
          ),
      },

      // 项目信息
      {
        name: 'projectInfo',
        path: '/admin/projectInfo',
        component: () =>
          import(
            /* webpackChunkName:"OSSFilings" */ '@/pages/admin/projectInfo/index.vue'
          ),
      },
      // {
      //   name: 'OSSFilingDetail',
      //   path: '/admin/OSSFilingDetail',
      //   component: () =>
      //     import(
      //       /* webpackChunkName:"FactoryDirectOrder" */ '@/pages/admin/ossFilings/FilingDetail.vue'
      //     ),
      // },
      
      // 线下采购订单管理
      {
        name: 'PO',
        path: '/admin/PO',
        component: () =>
          import(
            /* webpackChunkName:"/admin/PO" */ '@/pages/admin/PO/index.vue'
          ),
      },
    ],
  },
  {
    // 报备详情
    name: 'OSSFilingDetail',
    path: '/admin/OSSFilingDetail',
    component: () =>
      import(
        /* webpackChunkName:"FactoryDirectOrder" */ '@/pages/admin/ossFilings/FilingDetail.vue'
      ),
  },
  {
    name: 'BidFilingDetail',
    path: '/admin/BidFilingDetail',
    component: () =>
      import(
        /* webpackChunkName:"FactoryDirectOrder" */ '@/pages/admin/bidding/FilingDetail_bid.vue'
      ),
  },
  {
    // 费率管理
    name: 'ProductRate',
    path: '/admin/ProductRate',
    component (r) {
      require.ensure(
        [],
        () => r(require('@/pages/admin/ProductRate.vue')),
        'FilingDetail',
      )
    },
  },
  {
    // 登录
    name: 'OSSLogin',
    path: '/admin/Login',
    component (r) {
      require.ensure(
        [],
        () => r(require('@/pages/admin/OSSLogin.vue')),
        'OSSLogin',
      )
    },
    // component:() =>
    //   import( /*webpackChunkName:"OSS"*/ '@/pages/OSS/OSSLogin.vue')
  },
  {
    name: 'goods',
    path: '/admin/goods/detail',
    component: () =>
      import(
        /* webpackChunkName:"OSSFilings" */ '@/pages/admin/goods/detail.vue'
      ),
  },
  {
    name: 'GoodsDetail',
    path: '/admin/projectInfo/detail',
    component: () =>
      import(
        /* webpackChunkName:"OSSFilings" */ '@/pages/admin/projectInfo/detail.vue'
      ),
  },
  {
    name: 'PODetail',
    path: '/admin/PO/detail',
    component: () =>
      import(
        /* webpackChunkName:"/admin/PO/detail" */ '@/pages/admin/PO/detail.vue'
      ),
  },
]
